// Copyright © 2015 Steve Francia <spf@spf13.com>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// Package remote integrates the remote features of Viper.
package xviper

import "strings"

//copy from viper
type ViperRemoteProvider struct {
	ProviderType string
	Addrs        []string
	Location     string
	SecretKey    string
}

func (rp ViperRemoteProvider) Provider() string {
	return rp.ProviderType
}

func (rp ViperRemoteProvider) Endpoint() string {
	return strings.Join(rp.Addrs, ";")
}

func (rp ViperRemoteProvider) Path() string {
	return rp.Location
}

func (rp ViperRemoteProvider) SecretKeyring() string {
	return rp.SecretKey
}
